package IOperation;

import Book.Book;
import Book.BookList;

/**
 * Created with IntelliJ IDEA.
 * User: wenxiwen
 * Date: 2022/4/15
 * Time: 10:48
 * Description: No Description
 */
public class Exit implements IOperation{
    public void work(BookList bookList) {
        System.out.println("退出系统");

        int index = bookList.getCount();
        for (int i = 0; i < index; i++) {
          bookList.setBooks(i,null);
        }
        System.out.println("退出成功！");
    }
}